package com.wk.springboot.spring.profile;

import com.wk.springboot.spring.bean.Sky;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/**
 * Author: Administrator
 * Date: 2020/11/25 : 21:40
 * Description:
 */
@Configuration
@Profile("dev")
public class DevProfile {

    @Bean
    public Sky sky(){
        System.out.println("这个是dev环境");
        Sky sky = new Sky();
        sky.setColor("dev");
        return sky;
    }

}
